package org.jetlinks.pro.calculator;

import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author bestfeng
 * @since 1.9
 */
@Component
public class NumberValueCalculateProvider implements ValueCalculateProvider {

    public static final String TYPE = "number";

    @Override
    public String getCalculateType() {
        return "number";
    }

    @Override
    public ValueCalculateSupport getSupport(Map<String, Object> configuration) {
        return new NumberValueCalculateSupport(configuration);
    }
}
